package com.example.tao_city.text1;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;

/**
 * Created by TAO_CITY on 2018/1/12.
 */

public class Recharge_nfc extends AppCompatActivity {
    private ImageView back;
    private ImageView sck;
    @Override
    protected void onCreate(Bundle save){
        super.onCreate(save);
        setContentView(R.layout.rechargenfc);
        initbutton();
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        finish();
    }

    private void initbutton(){
        back=findViewById(R.id.recharge_nfc_back);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        sck=findViewById(R.id.NFC_shouchika);
        sck.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent();
                i.setClass(Recharge_nfc.this,Nfcchongzhi.class);
                startActivity(i);
            }
        });

    }
}
